use regex::Regex;

pub fn to_snake_case(str: &str) -> String {
    let re = Regex::new(r" +").unwrap();
    let new_string = re.replace_all(str, "_");
    new_string.to_lowercase()
}
